package ru.jexp.rcp.supply.img;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.plugin.AbstractUIPlugin;

import ru.jexp.rcp.supply.Activator;

public final class JExpImageLink {
	public static final String NSI = "icons/nsi.gif";
	public static final String DELETE = "icons/delete.gif";
	public static final String NEW = "icons/new.gif";
	public static final String NEW_MULTI = "icons/multinew.gif";
	public static final String NEW_PATTERN = "icons/new_pattern.gif";
	public static final String SEARCH = "icons/search.gif";
	public static final String VIEW_LIST = "icons/viewlist.gif";
	public static final String VIEW_NAV = "icons/viewnav.gif";
	public static final String ADD = "icons/add.ico";
	public static final String EDIT = "icons/edit.ico";
	public static final String SAVE = "icons/save.gif";
	public static final String SAVE_DISABLE = "icons/save_disable.gif";;
	public static final String SAVE_ALL = "icons/saveall.gif";
	public static final String COPY = "icons/copy.gif";
	public static final String COPY_DISABLE = "icons/copy_disable.gif";
	public static final String LOOKUP = "icons/lookup.gif";
	public static final String ZS = "icons/zs.ico";
	public static final String ZT = "icons/zt.ico";
	public static final String EK = "icons/ek.ico";
	public static final String SE = "icons/se.ico";
	public static final String PROJ = "icons/proj.ico";
	public static final String CLIENT = "icons/client.ico";
	public static final String SUPPLY = "icons/supply.ico";
	public static final String PF = "icons/pf.ico";
	public static final String ND = "icons/nd.ico";
	public static final String WIZARDPAGE = "icons/wizardpage.png";
	public static final String LOGON = "icons/promtech.ico";
	public static final String ACCOUNT = "icons/account.ico";
	public static final String PRINT = "icons/excel.ico";
	public static final String NAKL = "icons/nakl.ico";
	public static final String CORRELATE = "icons/correlate.ico";
	public static final String ERROR = "icons/error.ico";
	public static final String D18 = "icons/d18.ico";

	public static final ImageDescriptor getImageDescriptor(String path) {
		return AbstractUIPlugin.imageDescriptorFromPlugin(Activator.PLUGIN_ID, path);
	}

	public static final Image getImage(String path) {
		return getImageDescriptor(path).createImage();
	}
}
